<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:spring="http://www.springframework.org/tags"
                template="../../../layout/Template.xhtml">

    <ui:define name="menu">
        <ui:include src="${user.menu}"/>
    </ui:define>

    <ui:define name="title">
        <h:outputText value="#{resourceBundle.describeTutorialWelcome}"/>
    </ui:define>

    <ui:define name="content">
        <h:form id="describeTutorialForm">
            <rich:editor value="#{flowScope.currentTutorial.contain}" id="contain"
                         required="true" theme="advanced"
                         requiredMessage="#{resourceBundle.describeTutorialRequiredMessageContain}"
                         height="500"
                         width="650">
                <f:param name="theme_advanced_toolbar_location" value="top"/>
                <f:param name="theme_advanced_toolbar_align" value="left"/>
            </rich:editor>
            <h:message for="contain" style="color:red"/>
            <h:panelGrid id="describeTutorialButtonGrid" columns="2">
                <a4j:commandButton id="describeTutorialButtonUpdate"
                                   type="submit"
                                   value="#{bundle.submitButton}"
                                   action="update"/>
                <a4j:commandButton id="describeTutorialButtonReturn"
                                   value="#{bundle.cancelButton}"
                                   action="cancel"
                                   immediate="true"/>
            </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>